#ifndef FS4412_LED_HH
#define FS4412_LED_HH

#define LED_MAGIC 'L'
/*
 * need arg = 1/2 
 */
#define LED_ON	    0
#define LED_OFF 	1
#define PWM_ON 	_IO(PWM_MAGIC, 0)
#define PWM_OFF _IO(PWM_MAGIC, 1)
#define SET_PRE _IOW(PWM_MAGIC, 2, int)
#define SET_CNT _IOW(PWM_MAGIC, 3, int)

//寄存器地址
#define FS4412_GPM1CON	0x11000280
#define FS4412_GPM1DAT	0x11000284

#define FS4412_GPM2CON	0x110002A0
#define FS4412_GPM2DAT	0x110002A4

#define FS4412_GPM3CON	0x110002C0
#define FS4412_GPM3DAT	0x110002C4

#define FS4412_GPM4CON	0x110002E0
#define FS4412_GPM4DAT	0x110002E4


#endif
